package com.yss.reportworld.domain.arrwrap;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.ExcelValid;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * 报配置-报报送对象 rw_db_tp_rep_basic_submit
 *
 * @author yss
 * @date 2023-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("rw_db_tp_rep_basic_submit")
@Component("TpRepBasicSubmit")
public class TpRepBasicSubmit extends Model<TpRepBasicSubmit> {

    /**
     * 技术主键
     */
    @ExcelProperty("ID")
    @TableId("ID")
    private String id;

    /**
     * 报表对应结果表
     */
    @ExcelProperty("REPORT_OVER_NAME")
    @TableField("REPORT_OVER_NAME")
    @ExcelValid(message = "【TP_REP_BASIC_SUBMIT】【REPORT_OVER_NAME】不能为空")
    private String reportOverName;

    /**
     * 报送列
     */
    @ExcelProperty("SELECT_COLUMN")
    @TableField("SELECT_COLUMN")
    @ExcelValid(message = "【TP_REP_BASIC_SUBMIT】【REPORT_OVER_NAME】不能为空")
    private String selectColumn;

    /**
     * 报送条件
     */
    @ExcelProperty("SELECT_CONDITION")
    @TableField("SELECT_CONDITION")
    @ExcelValid(message = "【TP_REP_BASIC_SUBMIT】【REPORT_OVER_NAME】不能为空")
    private String selectCondition;


    /**
     * 数据编码
     */
    @ExcelIgnore
    @TableField("RW_DB_ID")
    private String rwDbId;

}
